<div class="widget">
    <div class="widgetTitle">
        <h3><?= $title; ?></h3>
    </div>

    <div class="widgetContent bottom-border">
        <div class="row nomargin">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <p class="block text-muted clearfix">
                    Please provide correct information of your Business and Services, we have full right to delete your
                    post anytime without prior intimation.
                </p>

                <?php if(Session::get('message')){?>
                <p class="block">
                    <span class="text-danger"><?= Session::get('message');?></span>
                </p>
                <?php }?>


 <form class="" method="post" action="<?= URL::current();?>" accept-charset="<?= Settings::get('en','charecter_set');?>"  enctype='multipart/form-data'>
                

                    <legend>Contact Information:</legend>
                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                            <label>Contact No <small class="text-muted">(Primary)</small></label>
                            <input type="text" name="phone1" id="phone1" class="field" placeholder="Primary Contact No" value="<?= $post->phone1;?>">
                     <div class="text-red small"><?php echo $errors->first('phone1') ?></div>
                        </div>
                        <div class="col-lg-6">
                            <label>Contact No <small class="text-muted">(Additional)</small></label>
                            <input type="text" name="phone2" id="phone2" class="field" placeholder="Contact no (Additional)" value="<?= $post->phone2;?>">
                        </div>
                    </div>

                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                            <label>Email</label>
                            <input type="email" name="email" id="email" class="field" placeholder="Email" value="<?= $post->email;?>">
                        <div class="text-red small"><?php echo $errors->first('email') ?></div>
                        </div>
                        <div class="col-lg-6">
                            <label>Website</label>
                            <input type="text" class="field" name="website" id="website" placeholder="http://" value="<?= $post->website;?>">
                         <div class="text-red small"><?php echo $errors->first('website') ?></div>
                        </div>
                    </div>

                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                            <label>Fax</label>
                            <input type="text" name="fax" id="fax" class="field" placeholder="Fax" value="<?= $post->fax;?>">
                        </div>
                        <div class="col-lg-6">
                            <label>Toll Free</label>
                            <input type="text" name="tollfree" id="tollfree" class="field" placeholder="Toll Free" value="<?= $post->tollfree;?>">
                        </div>
                    </div>
<hr>
                    <legend>Contact Persons:</legend>
                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                            <label>Name</label>
                            <input type="text" name="contact_name" id="contact_name" class="field" placeholder="Fax" value="<?= $post->fax;?>">
                        </div>
                        <div class="col-lg-6">
                            <label>Contact No</label>
                            <input type="text" name="contact_no" id="contact_no" class="field" placeholder="Toll Free" value="<?= $post->tollfree;?>">
                        </div>
                    </div>

                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                            <label>Name</label>
                            <input type="text" name="contact_name2" id="contact_name2" class="field" placeholder="Fax" value="<?= $post->fax;?>">
                        </div>
                        <div class="col-lg-6">
                            <label>Contact No</label>
                            <input type="text" name="contact_no2" id="contact_no2" class="field" placeholder="Toll Free" value="<?= $post->tollfree;?>">
                        </div>
                    </div>

<!--  
                    <legend>Select Keyword matches for your Business:</legend>
                    <div class="form-group clearfix">
                        <input type="hidden" name="keyID" value="">
                        <div class="field input-group select2-bootstrap-append" name="mykeyword" id="mykeyword" style="height: auto">
                        </div>
                    </div>
-->

                    <legend>Abount your Business</legend>
                    <div class="text-red small"><?php echo $errors->first('description') ?></div>
                    <div class="form-group clearfix">
                        <textarea class="field form-control" name="description" id="description" rows="10"><?= $post->description;?></textarea>
                    </div>

                    <legend>Product and Services</legend>
                    <div class="form-group clearfix">
                        <textarea class="field form-control" name="services" id="services" rows="5"><?= $post->services;?></textarea>
                    </div>

                    <legend>Logo
                        <div class="help">Update your business logo</div>
                    </legend>
                    <div class="form-group clearfix">
                        <div class="col-lg-6">
                          
                            <input class="btn" name="image" type="file">
                        </div>
                        <div class="col-lg-2">
                          
                        <img
                    src="<?= Url::base(); ?>/storage/uploads/logos/<?= $post->logo;?>"
                    title="Business Logo">
                </div>
                    </div>
                    <div class="form-group widget-footer">
                        <div class="col-sm-12">
                            <button type="submit" class="btn btn-success">Update & Continue</button>
                        </div>

                    </div>
                </form>

            </div>
        </div>
    </div>
</div>